<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="css/bootstrap.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script src="js/bootstrap.js"></script>
</head>
<body>
这有一条数据
<!-- Button trigger modal -->
<button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#myModal">
   删除
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body">
              <H3>尓敢?</H3>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">不敢</button>
                <button type="button" class="btn btn-sm btn-danger" id="yes_btn">敢!</button>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    $("#yes_btn").click(function () {
        //1.发送ajax请求删除数据
        //2.关闭模块框
        $('#myModer').modal('hide');
    })
</script>
</html>